<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.wonders.ips.sysadmin.Menu"%>

<%
String node = request.getParameter("node");
String id = request.getParameter("id");
String name = request.getParameter("name").trim();
String href = request.getParameter("href").trim();

String actionType = request.getParameter("actionType");

Menu m = new Menu();

if (actionType.equals("0"))
  m.addElement(node,name,href);
if (actionType.equals("1"))
  m.modElement(id,name,href);
if (actionType.equals("2"))
  m.delElement(id);

response.sendRedirect("list_element.jsp?node="+node);
%> 
